From 06c12463fcb3b3aa7fcd221ef406d5839c2bc2ff Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 4 Nov 2005 11:05:10 +0100 Subject: [PATCH] This is another patch that adds an arg_check() to domid and domname so that we don't dump stack if a user runs either without an argument. Signed-off-by: Dan Smith --- tools/python/xen/xm/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 9e4a4a30dc..cec2bef59d 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -466,6 +466,8 @@ def xm_set_vcpus(args): server.xend_domain_set_vcpus(args[0], int(args[1])) def xm_domid(args): + arg_check(args, 1, "domid") + name = args[0] from xen.xend.XendClient import server @@ -473,6 +475,8 @@ def xm_domid(args): print sxp.child_value(dom, 'domid') def xm_domname(args): + arg_check(args, 1, "domname") + name = args[0] from xen.xend.XendClient import server -- 2.30.2